// Package routers
// 请勿动下面的占位符{{append}}，代码生成用的
package router

import (
	"server/application/constant/apis"
	"server/application/controller/sysctrl"
	"server/pkg/ginp"
)

// ProtectApiRoutes 注册需要授权的api接口
var ProtectApiRoutes = []ItemInfo{
	{Path: apis.ApiMenuTreeSelectList, Handlers: ginp.ConvHandler(sysctrl.GetMenuSelectTreeList), HttpType: HttpPost},
	{Path: apis.ApiMenuTreeList, Handlers: ginp.ConvHandler(sysctrl.GetMenuTreeList), HttpType: HttpPost},
	{Path: apis.ApiAuthMenuTreeList, Handlers: ginp.ConvHandler(sysctrl.GetAuthMenuList), HttpType: HttpPost},
	{Path: apis.ApiMenuTreePermission, Handlers: ginp.ConvHandler(sysctrl.GetMenuTreePermission), HttpType: HttpPost},
	{Path: apis.ApiMenuGetNames, Handlers: ginp.ConvHandler(sysctrl.GetMenuNames), HttpType: HttpPost},

	{Path: apis.ApiMenuCreate, Handlers: ginp.ConvHandler(sysctrl.MenuCreate), HttpType: HttpPost},
	{Path: apis.ApiMenuUpdate, Handlers: ginp.ConvHandler(sysctrl.MenuUpdate), HttpType: HttpPost},
	{Path: apis.ApiMenuDelete, Handlers: ginp.ConvHandler(sysctrl.MenuDelete), HttpType: HttpPost},

	{Path: apis.ApiAuthGetUserButtonList, Handlers: ginp.ConvHandler(sysctrl.GetButtonAuthList), HttpType: HttpPost},

	//代码生成相关
	{Path: apis.ApiGenGetEntityNames, Handlers: ginp.ConvHandler(sysctrl.SysGenEntityNames), HttpType: HttpPost},
	{Path: apis.ApiGenGetEntityInfo, Handlers: ginp.ConvHandler(sysctrl.SysGenEntityInfo), HttpType: HttpPost},
	{Path: apis.ApiGenGetEntitySave, Handlers: ginp.ConvHandler(sysctrl.SysGenEntitySave), HttpType: HttpPost},
	{Path: apis.ApiGenFile, Handlers: ginp.ConvHandler(sysctrl.SysGenFile), HttpType: HttpPost},

	{Path: apis.ApiSysUserCreate, Handlers: ginp.ConvHandler(sysctrl.SysUserCreate), HttpType: HttpPost},
	{Path: apis.ApiSysUserUpdate, Handlers: ginp.ConvHandler(sysctrl.SysUserUpdate), HttpType: HttpPost},
	{Path: apis.ApiSysUserDelete, Handlers: ginp.ConvHandler(sysctrl.SysUserDelete), HttpType: HttpPost},
	{Path: apis.ApiSysUserSearch, Handlers: ginp.ConvHandler(sysctrl.SysUserSearch), HttpType: HttpPost},

	//{Path: apis.ApiSysMenuCreate, Handlers: ginp.ConvHandler(api.SysMenuCreate), HttpType: POST},
	//{Path: apis.ApiSysMenuUpdate, Handlers: ginp.ConvHandler(api.SysMenuUpdate), HttpType: POST},
	//{Path: apis.ApiSysMenuDelete, Handlers: ginp.ConvHandler(api.SysMenuDelete), HttpType: POST},
	//{Path: apis.ApiSysMenuSearch, Handlers: ginp.ConvHandler(api.SysMenuSearch), HttpType: POST},

	{Path: apis.ApiSysDictionaryCreate, Handlers: ginp.ConvHandler(sysctrl.SysDictionaryCreate), HttpType: HttpPost},
	{Path: apis.ApiSysDictionaryUpdate, Handlers: ginp.ConvHandler(sysctrl.SysDictionaryUpdate), HttpType: HttpPost},
	{Path: apis.ApiSysDictionaryDelete, Handlers: ginp.ConvHandler(sysctrl.SysDictionaryDelete), HttpType: HttpPost},
	{Path: apis.ApiSysDictionarySearch, Handlers: ginp.ConvHandler(sysctrl.SysDictionarySearch), HttpType: HttpPost},
	{Path: apis.ApiSysDictionaryGetOptions, Handlers: ginp.ConvHandler(sysctrl.SysDictionaryGetOptions), HttpType: HttpPost},

	//文件上传接口
	{Path: apis.ApiSysCommonUpload, Handlers: ginp.ConvHandler(sysctrl.SysCommonUpload), HttpType: HttpPost},

	//{Path: apis.ApiPubQrLinkCreate, Handlers: ginp.ConvHandler(sysctrl.PubQrLinkCreate), HttpType: HttpPost},
	//{Path: apis.ApiPubQrLinkUpdate, Handlers: ginp.ConvHandler(sysctrl.PubQrLinkUpdate), HttpType: HttpPost},
	//{Path: apis.ApiPubQrLinkDelete, Handlers: ginp.ConvHandler(sysctrl.PubQrLinkDelete), HttpType: HttpPost},
	//{Path: apis.ApiPubQrLinkSearch, Handlers: ginp.ConvHandler(sysctrl.PubQrLinkSearch), HttpType: HttpPost},
	{Path: apis.ApiSysRoleCreate, Handlers: ginp.ConvHandler(sysctrl.SysRoleCreate), HttpType: HttpPost},
	{Path: apis.ApiSysRoleUpdate, Handlers: ginp.ConvHandler(sysctrl.SysRoleUpdate), HttpType: HttpPost},
	{Path: apis.ApiSysRoleDelete, Handlers: ginp.ConvHandler(sysctrl.SysRoleDelete), HttpType: HttpPost},
	{Path: apis.ApiSysRoleSearch, Handlers: ginp.ConvHandler(sysctrl.SysRoleSearch), HttpType: HttpPost},
	{Path: apis.ApiSysRoleGetTree, Handlers: ginp.ConvHandler(sysctrl.GetRoleTreeList), HttpType: HttpPost},
	{Path: apis.ApiSysRoleGetTreeSelect, Handlers: ginp.ConvHandler(sysctrl.GetRoleTreeSelect), HttpType: HttpPost},
	{Path: apis.ApiSysRolePermissionsCreate, Handlers: ginp.ConvHandler(sysctrl.SysRolePermissionsCreate), HttpType: HttpPost},
	{Path: apis.ApiSysRolePermissionsUpdate, Handlers: ginp.ConvHandler(sysctrl.SysRolePermissionsUpdate), HttpType: HttpPost},
	{Path: apis.ApiSysRolePermissionsDelete, Handlers: ginp.ConvHandler(sysctrl.SysRolePermissionsDelete), HttpType: HttpPost},
	{Path: apis.ApiSysRolePermissionsSearch, Handlers: ginp.ConvHandler(sysctrl.SysRolePermissionsSearch), HttpType: HttpPost},
	{Path: apis.ApiSysRolePermissionsSave, Handlers: ginp.ConvHandler(sysctrl.SysRolePermissionsSave), HttpType: HttpPost},
	//{{append}}
}
